
class Car(object):
    def __init__(self, color, csfe):
        self.color = color
        self.csfe = csfe

    def introduce(self):
        print(f"我是一辆{self.color}的车，我的百公里油耗是{self.csfe}。")

if '__main__' == __name__:
    car1 = Car('红色', '10L')
    car1.introduce()
